<%@page contentType="text/javascript;charset=GBK" language="java"%>
<%@page import="com.tansuosoft.discoverx.common.CommonConfig,java.io.File"%>
<%
String url=request.getRequestURL().toString();
url=url.substring(0,url.lastIndexOf('/')+1);
String path=CommonConfig.getInstance().getInstallationPath()+"tsim"+File.separator+"theme"+File.separator+"emotions";
File p=new File(path);
File files[]=p.listFiles();
int idx=0;
for(File f:files){
	if(f.isDirectory()) continue;
	String n=f.getName();
	if(n.endsWith(".jsp")) continue;
	idx++;
}
%>
chatwin.emotionCount=<%=idx%>;
